#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    QDesktopServices::openUrl(QUrl("http://www.baidu.com"));
}

void MainWindow::on_pushButton_2_clicked()
{
    QProcess process(this);
    process.startDetached("explorer.exe");
}

void MainWindow::on_pushButton_3_clicked()
{
    QProcess process(this);
    process.startDetached("cmd.exe");
}

void MainWindow::on_pushButton_4_clicked()
{
    QProcess process(this);
    process.startDetached("mspaint.exe");
}

void MainWindow::on_pushButton_5_clicked()
{
    QProcess process(this);
    process.startDetached("calc.exe");
}

void MainWindow::on_pushButton_6_clicked()
{
    QProcess process(this);
    process.startDetached("notepad.exe");
}

void MainWindow::on_pushButton_7_clicked()
{
    QProcess process(this);
    process.startDetached("devmgmt.msc");
}
